package com.yan.controller;


import com.yan.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;

@Controller
@RequestMapping("/user")
public class CotrollerJspTest {


    @RequestMapping("/t1")
    public String test(String  name){
        System.out.println("name"+name);
        return "text";
    }




    @RequestMapping("/t2")
    public String test2(@RequestParam("username") String  name){
        System.out.println("name"+name);
        return "text";
    }



    @RequestMapping("/t3")
    public String test3(User user){
        System.out.println("user"+user);
        return "text";
    }




}
